/**
 * @description 前端路由配置权限类型
 * @author 盘古他爹
 */

//角色枚举
 enum roleTypes {
    boss = "boss",
    leader = "leader",
    farmer = "farmer"

}

//路由大分类枚举
enum IFrontRouterConfigKey {
    list =  "list",
    dataShow = "dataShow",
    pic = "pic"
}

//三级路由类型配置
interface IFrontRouterConfigData {
    
        sqlName: string
        menuName: string
        icon: string
        roles:roleTypes[],
        url: string
    
}

//二级路由类型配置
interface IKey {
    data: IFrontRouterConfigData[],
    roles:roleTypes[],
    name: string,
    icon: string,
    url: string
}


//路由配置类型
interface IFrontRouterConfig {
    [IFrontRouterConfigKey.list]: IKey
    [IFrontRouterConfigKey.dataShow]: IKey
    [IFrontRouterConfigKey.pic]: IKey
}

export  {
    roleTypes,
    IFrontRouterConfigKey,
    IKey,
    IFrontRouterConfig
}